package demo05;

public class Bird extends Animal implements IFlyable{
    //鸟是一个动物具备飞行能力
    public Bird(String name, int age) {
        super(name, age);
    }

    public void eat(){
        System.out.println(this.name +"正在吃鸟粮");
    }

    @Override
    public void fly() {
        System.out.println(this.name +"正在飞行");
    }
}
